﻿using EierFarmDAL;
using System;
using System.Windows;

namespace EierFarm
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private readonly Huhn _hen;

        public MainWindow()
        {
            InitializeComponent();
            _hen = new Huhn("Kombdi", HenBreed.e_Bayern);

            DataContext = _hen;
        }

        public void EggLaying_Click(object sender, RoutedEventArgs e)
        {
            _hen.EggLaying();
        }

        public void Feed_Click(object sender, RoutedEventArgs e)
        {
            _hen.Feed();
        }
    }
}